﻿using MediatR;
using RBAC.LuFang.API.Application.Command.imgCommand;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.imgCommandHandler
{
    //删除屠宰下的企业照片
    public class DelslaEnterPicHandler:IRequestHandler<DelslaEnterPicCommand,int>
    {
        private readonly IslaughterService _slaService;

        public DelslaEnterPicHandler(IslaughterService slaService)
        {
            _slaService = slaService;
        }

        public async Task<int> Handle(DelslaEnterPicCommand request, CancellationToken cancellationToken)
        {
            return await _slaService.DelslaEnterPic(request.id);
        }
    }
}
